/********************************************************************
 * PROJECT: CSAIR ROST PROJECT.
 * SUPPLIER: FOREVER OPEN SOURCE SOFTWARE INC.
 ********************************************************************
 * FILE: GanttGridItemData.java
 * (C) Copyright Foliage Team 2013, All Rights Reserved.
 ********************************************************************/
package org.foliage.rcp.ui.custom;

public class GanttGridItemData {

	// ----------------------------------------------- 

	private String[] gridTexts;

	private String ganttText;

	private boolean visible;

	private GanttGridTaskData[] taskDatas;

	// ----------------------------------------------- 

	public GanttGridItemData(GanttGridItem item) {
		super();
		this.ganttText = item.getGanttText();
		this.gridTexts = item.getGridTexts();
		this.visible = item.isVisible();
		GanttGridTask[] tasks = item.getTasks();
		this.taskDatas = new GanttGridTaskData[tasks.length];
		for (int i = 0; i < tasks.length; i++) {
			this.taskDatas[i] = new GanttGridTaskData(tasks[i]);
		}
	}

	// ----------------------------------------------- 

	public String[] getGridTexts() {
		return gridTexts;
	}

	public void setGridTexts(String[] texts) {
		this.gridTexts = texts;
	}

	public String getGanttText() {
		return ganttText;
	}

	public void setGanttText(String ganttText) {
		this.ganttText = ganttText;
	}

	public boolean isVisible() {
		return visible;
	}

	public void setVisible(boolean visible) {
		this.visible = visible;
	}

	public GanttGridTaskData[] getTaskDatas() {
		return taskDatas;
	}

	public void setTaskDatas(GanttGridTaskData[] taskDatas) {
		this.taskDatas = taskDatas;
	}

}
